import { defHttp } from "@/utils/http";
export const hrmRetiredApi = {
	//获得退休职工信息分页
	hrmRetiredPage: async (params?: any) => {
		return await defHttp.get({ url: "/hrms/hrm-retired/page", params });
	},
	//创建退休职工信息
	hrmRetiredCreate: async (params?: any) => {
		return await defHttp.post({ url: "/hrms/hrm-retired/create", params });
	},
	//删除退休职工信息
	hrmRetiredDelete: async (params?: any) => {
		return await defHttp.delete({ url: `/hrms/hrm-retired/delete?id=${params.id}` });
	},
	//更新退休职工信息
	hrmRetiredUpdate: async (params?: any) => {
		return await defHttp.put({ url: "/hrms/hrm-retired/update", params });
	}
};
